<?php
/**
 * Vista para asignar etiquetas a la plantilla seleccionada
 *
 * @author Israel Mora e Ismael Garcia
 */
?>
<table id="tabla-normal">
    <tr>
		<th><?php echo _("Etiquetas actuales"); ?></th>
                <th><?php echo _("Eliminar"); ?></th>
                
    </tr>
	<?php 
		foreach($files as $fila){ 
	?> 
    <tr>  
        <td><?php echo (control_asign_templ::returnClassiTitle($fila["id_classificacio"])); ?></td>
		
                <td>
			<a href="#" title="delete" onclick="getData('<?php echo $delete; ?>&id=<?php echo $fila["id"]; ?>&doc_id=<?php echo $doc_id ?>','<?php echo $capa; ?>');">
			    <img src="img/delete.gif" border=0 />
			</a>
		</td>
                
               

    </tr>
	<?php } ?>
</table>

<table id="tabla-normal">
        
        <tr>
            <th><?php echo _("Etiquetas disponibles"); ?></th>
            <th><?php echo _("Añadir"); ?></th>
        </tr>
        
            <?php 
                    foreach($label as $lab){ 
            ?> 
        <tr>
                <td><?php echo $lab["titol"]; ?></td>
                <td>
                            <a href="#" title="add" onclick="getData('<?php echo $add; ?>&id_classificacio=<?php echo $lab["id"]; ?>&id_document=<?php echo $doc_id ?>','<?php echo $capa; ?>');">
                                    <img src="img/plus.png" border=0 />
                            </a>
                </td>
            <?php } ?>
        </tr>
        
 </table> 
